<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-03-16 15:48:04
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-04-17 16:48:23
 * @FilePath: \mould\src\views\test\tt.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="dashboard-container">
        1:<vDatePicker :defaultDate="defaultDate" @selectPickDate="selectPickDate"></vDatePicker>
        2:<vDatePicker type="datetimerange" :dateNum="0" format="yyyy-MM-dd HH:mm:ss" width="300px" :option="1"
            @selectPickDate="selectPickDate" :defaultDate="defaultDate" :confirm="true" :today="true"></vDatePicker>
        3:<vDatePicker @selectPickDate="selectPickDate" type="date" format="yyyy-MM-dd" :defaultDate="1" :option="1">
        </vDatePicker>


    </div>
</template>
<script>
import vDatePicker from '@/components/public/v-DatePicker';

export default {

    data() {
        return {
            defaultDate: ['2023-01-01 00:00:00', '2023-01-08 00:00:00']
        }
    },
    components: {
        vDatePicker
    },
    mounted() {
        // console.log(this.$store.state.defaultDates);
    },
    methods: {
        selectPickDate(e) {
            console.log(e);
        }

    },
}
</script>
<style scoped lang="less"></style>
